// string_apis_2.dart
extension NumberParsing2 on String {
  // Defines a parseInt method similar to the one in string_apis.dart
  int parseInt() {
    return int.parse(this);
  }

  // Optionally, define another method to make this extension unique
  double parseDouble() {
    return double.parse(this);
  }
}


//https://dart.cn/language/extension-methods/#unnamed-extensions
// string_apis_2.dart
/*extension on String {
  bool get isBlank => trim().isEmpty;
}*/